import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text("DEmo"),
          ),
          body: const HomeContent()),
    );
  }
}

class HomeContent extends StatelessWidget {
  const HomeContent({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Container(
        child: const Text("这是一个文本;这是一个文本;这是一个文本;这是一个文本;这是一个文本;这是一个文本.这是一个文本",
            textAlign: TextAlign.right,
            // overflow: TextOverflow.fade,
            // overflow: TextOverflow.ellipsis,
            textScaleFactor: 2,
            // maxLines: 1,
            style: TextStyle(
              fontSize: 16,
              color: Color.fromARGB(255, 255, 255, 255),
              fontWeight: FontWeight.bold,
              fontStyle: FontStyle.italic,
              decoration: TextDecoration.lineThrough,
              decorationColor: Colors.white,
              decorationStyle: TextDecorationStyle.dashed,
              letterSpacing: 10,
            )),
        height: 300,
        width: 300,
        decoration: BoxDecoration(
            color: Colors.red,
            border: Border.all(color: Colors.blue, width: 3),
            borderRadius: const BorderRadius.all(Radius.circular(20))),
        // padding: const EdgeInsets.all(20),
        // margin: const EdgeInsets.all(10),
        // transform: Matrix4.translationValues(100, 0, 0),
        // transform: Matrix4.rotationZ(0.1),
        // transform: Matrix4.diagonal3Values(1.2, 1, 1),
        // alignment: Alignment.topRight,
      ),
    );
  }
}
